// --------------------------------------------------------------------------------------------------------------------
// <copyright file="FolderBrowserDialog.cs" company="GT">
//   Gunther Taborga
// </copyright>
// <summary>
//   Defines the FolderBrowserDialog type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace BatchID3.Editor.Dialogs
{
    using System;
    using System.Windows.Forms;

    public class FolderBrowserDialog : IFolderBrowserDialog
    {
        private readonly System.Windows.Forms.FolderBrowserDialog folderBrowserDialog;

        public FolderBrowserDialog()
        {
            this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();    
        }

        public string Description
        {
            get
            {
                return this.folderBrowserDialog.Description;
            }

            set
            {
                this.folderBrowserDialog.Description = value;
            }
        }

        public string SelectedPath
        {
            get
            {
                return this.folderBrowserDialog.SelectedPath;
            }

            set
            {
                this.folderBrowserDialog.SelectedPath = value;
            }
        }

        public Environment.SpecialFolder RootFolder
        {
            get
            {
                return this.folderBrowserDialog.RootFolder;
            }

            set
            {
                this.folderBrowserDialog.RootFolder = value;
            }
        }

        public DialogResult ShowDialog(IWin32Window owner)
        {
            return this.folderBrowserDialog.ShowDialog(owner);
        }

        public void Dispose()
        {
            this.folderBrowserDialog.Dispose();
        }
    }
}